﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TEST_TextArea.aspx.cs" Inherits="TestCustomControl_TEST_TextArea" %>

<%@ Register Assembly="JUtil.Web" Namespace="JUtil.Web.WebControls" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:ScriptManager 
            ID="ScriptManager1" 
            EnablePartialRendering="True"
            runat="server">
              <%--<Scripts>
                <asp:ScriptReference 
                  Assembly="JUtil.Web" 
                  Name="JUtil.Web.JavaScript.jutil-all.js" />
              </Scripts>--%>
          </asp:ScriptManager>

         <asp:Panel ID="Panel1" runat="Server" style="display:none;">
            <cc1:TextArea ID="TextArea2" runat="server"></cc1:TextArea> 
          </asp:Panel> 
                    
      <h3>測試自訂控件在updatepanel從隱藏到顯示的時候, 控件在載入javascript會出現的問題</h3>
      
      <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
      
      <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
        <Triggers>
          <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
        </Triggers>
        <ContentTemplate>
          <asp:Panel ID="pnl" runat="Server">
            
            <cc1:TextArea ID="TextArea1" runat="server"></cc1:TextArea>
            
            
          </asp:Panel>
          
        </ContentTemplate>
      </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
